package com.web.portal.utils.file;

/**
 * 图片上传参数判断传入
 */
public class UploadImageBean {
    private String path;//上传到服务器的路径(例如"/home/picture",上传到阿里云不用填)
    private String fileType;//原需要上传图片的类型(由调用者指定 例如：jpg  png字符串)
    private Long maxSize;//原图片上传时的最大尺寸(由调用者指定  单位是  M)
    private Long width;//原图片上传时的最大宽度(由调用者指定)
    private Long height;//原图片上传时的最大高度(由调用者指定)
    private float quality;//指定压缩图片的质量 上传压缩图片时候需要传入 图片质量0-1之间(由调用者指定)
    private int thumbWidth;//指定缩略图上传的宽度  上传缩略图片时候需要传入(由调用者指定 可建议100)
    private int thumbHeight;//指定缩略图上传的高度 上传缩略图片时候需要传入(由调用者指定 可建议100)

    private String endPoint;//上传到阿里云时需必填入  需要设置阿里云的API的内或外网域名
    private String accessKeyId;//上传到阿里云时需必填入  阿里云API的密钥Access Key ID
    private String accessKeySecret;//上传到阿里云时需必填入  阿里云API的密钥Access Key Secret
    private String backetName;//上传到阿里云时需必填入 阿里云API的bucket名称
    private String folder;//上传到阿里云时需必填入 阿里云API的文件夹名称

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getEndPoint() {
        return endPoint;
    }

    public void setEndPoint(String endPoint) {
        this.endPoint = endPoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getBacketName() {
        return backetName;
    }

    public void setBacketName(String backetName) {
        this.backetName = backetName;
    }

    public String getFolder() {
        return folder;
    }

    public void setFolder(String folder) {
        this.folder = folder;
    }

    public int getThumbWidth() {
        return thumbWidth;
    }

    public void setThumbWidth(int thumbWidth) {
        this.thumbWidth = thumbWidth;
    }

    public int getThumbHeight() {
        return thumbHeight;
    }

    public void setThumbHeight(int thumbHeight) {
        this.thumbHeight = thumbHeight;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public Long getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(Long maxSize) {
        this.maxSize = maxSize;
    }

    public Long getWidth() {
        return width;
    }

    public void setWidth(Long width) {
        this.width = width;
    }

    public Long getHeight() {
        return height;
    }

    public void setHeight(Long height) {
        this.height = height;
    }

    public float getQuality() {
        return quality;
    }

    public void setQuality(float quality) {
        this.quality = quality;
    }
}
